home *** CD-ROM | disk | FTP | other *** search
- /*
- File: camera library.h
-
- Copyright: © 1984-1994 by Apple Computer, Inc., all rights reserved.
-
- WARNING
- This file was auto generated by the interfacer tool. Modifications
- must be made to the master file.
-
- */
-
- #ifndef cameraLibraryIncludes
- #define cameraLibraryIncludes
-
- #include "math types.h"
- /* #include <Types.h> */
- /* #include <ConditionalMacros.h> */
- /* #include <MixedMode.h> */
- /* #include <Traps.h> */
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #if defined(powerc) || defined (__powerc)
- #pragma options align=mac68k
- #endif
- struct point3D {
- Fixed x;
- Fixed y;
- Fixed z;
- };
- #if defined(powerc) || defined(__powerc)
- #pragma options align=reset
- #endif
-
- #if defined(powerc) || defined (__powerc)
- #pragma options align=mac68k
- #endif
- struct unit3D {
- fract x;
- fract y;
- fract z;
- };
- #if defined(powerc) || defined(__powerc)
- #pragma options align=reset
- #endif
-
- #if defined(powerc) || defined (__powerc)
- #pragma options align=mac68k
- #endif
- struct camera {
- struct point3D location;
- struct point3D axis;
- struct point3D zenith;
- struct point3D observer;
- gxMapping orientation;
- };
- #if defined(powerc) || defined(__powerc)
- #pragma options align=reset
- #endif
-
- #if defined(powerc) || defined (__powerc)
- #pragma options align=mac68k
- #endif
- struct patch {
- struct point3D u;
- struct point3D v;
- struct point3D origin;
- };
- #if defined(powerc) || defined(__powerc)
- #pragma options align=reset
- #endif
-
- #ifndef __cplusplus
- typedef struct point3D point3D;
-
- typedef struct unit3D unit3D;
-
- typedef struct camera camera;
-
- typedef struct patch patch;
-
- #endif
-
- extern void InitCamera(camera *);
- extern void UpdateCamera(camera *);
- extern void PatchToCameraMap(patch *, camera *, gxMapping *);
- extern Fixed Unitize(point3D *, unit3D *);
- extern fract FracDot(unit3D *, unit3D *);
- extern void FracCross(unit3D *, unit3D *, unit3D *cross);
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-
-